using CombineRemoteAndLocalSchemaDemo.Api.GraphTypes;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddGraphQLServer()
    .AddQueryType()
    .AddTypeExtension<OrderResolver>()
    .PublishSchemaDefinition(c => c.SetName("orders"));

var app = builder.Build();
app.MapGraphQL();
app.Run();